﻿using PMS.Web.Framework.Models;

namespace PMS.Web.Models.Customers
{
    public class OrganizeTreeModel : BaseEntityModel, ILayuiTreeModel
    {
        public OrganizeTreeModel()
        {
            Field = string.Empty;
            Href = string.Empty;
            Spread = true;
            Checked = false;
            Disabled = false;
        }
        public string Name { get; set; }
        public string DisplayName { get; set; }
        public int ParentId { get; set; }
        public int DisplayOrder { get; set; }
        public bool IsActive { get; set; }
        public string Title { get => DisplayName; set => DisplayName = value; }
        public string Field { get; set; }
        public string Href { get; set; }
        public bool Spread { get; set; }
        public bool Checked { get; set; }
        public bool Disabled { get; set; }
    }
}
